package com.leyou.trade.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document("carts")
public class Carts {
    @Id //id组成使用联合主键的思想，id中既包含skuId又包含userId，eg:u31s123456
    private String id;

    private Long skuId;
    private Long userId;

    private String title;
    private String image;
    private Double price;
    private Integer num;
    private String spec;

    //private Date lastModifyTime;
}
